#!/bin/zsh

c1="  #     ###    #####  #      "
c2=" ##    #   #  #     # #    # " 
c3="# #   #     #       # #    # "
c4="  #   #     #  #####  #    # "
c5="  #   #     # #       #######"
c6="  #    #   #  #            # "
c7="#####   ###   #######      # "

color=('40;37m' '41;30m' '42;34m' '43;34m' '44;30m' '45;30m' '46;30m' '47;34m')

show() {
  for i in `seq 7`; do
    #m=`eval echo '"$c'$i'"'`
    #m=`eval echo '"\e[5;31m $c'$i' \e[0m\n"'`
    #m=`eval echo '"\033[47;34m $c'$i' \033[0m\n"'`
    m=`eval echo '"\e['${color[$(($RANDOM % 7))]}' $c'$i' \e[0m\n"'`
    echo "$m"
  done
}

for no in `seq 10`; do
  ${color[$(($RANDOM % 7))]}
  clear
  sleep 0.2
  show
  sleep 1 
done
